﻿using AutoFlatnessTest.Db.Tables.Model;
using Dapper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AutoFlatnessTest.Db.Tables
{
    public class XNJC_CheckDb
    {
        public static bool IsChe(string code)
        {
            using (var connection = DbHelp.GetSqlServerConn5())
            {
                string sql = @"select top 1 *  from t_XNJC_Check where Code=@code";
                return connection.Query<XNJC_Check>(sql, new { code }).ToList().Any();
            }
        }
    }
}
